package com.scalar.chiptrack.operations.reports.actionCommands;

import com.scalar.chiptrack.commons.Constants;
import com.scalar.chiptrack.actioncommands.ActionCommand;

public class DataDumpReportsActionCommandFactory implements Constants
{
    public static ActionCommand getActionCommand( String action )
    {
        if ( DUMP_REPORT_INVENTORY_COST_SEARCH_ACTION.equalsIgnoreCase( action ) || ACTION_CALCULATE_COST.equalsIgnoreCase( action ) )
        {
            return new DataDumpReportSearchActionCommand();
        }
        else if ( DUMP_REPORT_INVENTORY_COST_ACTION.equalsIgnoreCase( action )
                || DUMP_REPORT_WIP_INVENTORY_INFO_ACTION.equalsIgnoreCase( action )
                || DUMP_REPORT_CREDIT_DEBIT_REPORT_ACTION.equalsIgnoreCase( action )
                || DUMP_REPORT_COST_CODES_REPORT_ACTION .equalsIgnoreCase( action)
                || DUMP_REPORT_COST_VARIANCE_REPORT_ACTION.equalsIgnoreCase(action)
                || DUMP_REPORT_CUMM_YIELD_REPORT_ACTION.equalsIgnoreCase( action )
                || DUMP_REPORT_INVENTORY_SUMMARY_ACTION.equalsIgnoreCase( action )
                || "shipmentReportByDate".equalsIgnoreCase( action)
                || "openPOReportExcel".equalsIgnoreCase( action) )
        {
            return new DataDumpReportActionCommand();
        }

        return null;
    }
}
